package com.ckr.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Shadowckr
 * @create 2022-01-07 20:59
 */

//测试拦截器的控制器
@Controller
@RequestMapping("/interceptor")
public class InterceptorController {

    @RequestMapping("/t1")
    @ResponseBody
    public String testFunction() {
        System.out.println("控制器中的方法执行了");
        return "hello";
    }
}
